<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }
        #layout {
            max-width: 750px;
            min-width: 320px;
            width: 100%;
            margin: 0 auto;
            position: relative;
        }
        a {
            text-decoration: none;
        }
        .btn {
            display: block;
            width: 300px;
            height: 50px;
            line-height: 50px;
            text-align: center;
            border:1px solid #1ab394;
            color: #1ab394;
            margin:10px auto 0;
        }
        .btn:hover {
            background-color: #1ab394;
            color: #fff;
        }
    </style>
    <script type="text/javascript" src="{{basePath}}/plugins/jquery.min.js"></script>
</head>
<body>
    <div id="layout">
        <a href="javascript:;" class="btn">page1</a>
        <a href="javascript:;" class="btn">page2</a>
        <a href="javascript:;" class="btn">page3</a>
        <a href="javascript:;" class="btn">page4</a>
        <a href="javascript:;" class="btn">page5</a>
    </div>
<script>
    $("#layout").on("click",".btn",function (e) {
        var $this=$(this);
        var val=$this.html();
        var send={str:val,contractNo:"SH02"};
        $.post("http://10.17.4.58:8080/agent-service/api/websocket/send.do",send,function (data) {
            console.log(data);
        });
    });
</script>
</body>
</html>